package cn.edu.xjtu.data_structure.chapter02_stack_queue.queue;

/**
 * @author yjq
 * @version 1.0
 * @date 2021/9/17 21:16
 */
public class MyQueueTest {
    public static void main(String[] args) {
        MyQueue test=new MyQueue(2,10);
        test.enqueue(1,1);
        test.enqueue(1,2);
        test.enqueue(1,3);
        test.enqueue(1,4);
        test.enqueue(1,5);
        test.enqueue(2,5);
        test.enqueue(2,5);
        test.enqueue(2,5);
        test.enqueue(2,5);
        Object[] test1=test.getListArray();

        for (int i = 0; i <test1.length; i++) {
            if (test1[i]!=null)
            System.out.println(test1[i]);
        }
    }
}
